import Layout from '@/page/layout/';

const _import = require('../_import');

export default [{
        path: '/',
        name: '根目录',
        redirect: '/run',
        meta: {},
    },
    {
        path: '/iframe/:routerPath',
        name: 'iframe',
        component: _import('iframe/main', 'components'),
        props: true,
    }, {
        path: '/run',
        name: '启动页',
        component: _import('run/index'),
        meta: {},

    }, {
        path: '/pay',
        name: '支付页',
        component: _import('pay/index'),
        meta: {},

    }, {
        path: '/setting',
        name: '设置',
        component: _import('setting/index'),
        meta: {},

    }, {
        path: '/maintain',
        name: '停机维护',
        component: _import('maintain/index'),
        meta: {},
    }, {
        path: '/user/information',
        name: '用户信息',
        component: _import('user/information'),
        meta: {
            keepAlive: true,
        },
    }, {
        path: '/index',
        name: '主框架',
        component: _import('index'),
        redirect: '/index/main',
        children: [{
            path: 'main',
            name: '主页',
            components: {
                main: _import('main/index'),
            },
            meta: {
                keepAlive: true,
            },
        }, {
            path: 'service',
            name: '服务',
            components: {
                main: _import('service/index'),
            },
            meta: {
                keepAlive: true,
            },
        }, {
            path: 'message',
            name: '消息',
            components: {
                main: _import('message/index'),
            },
            meta: {
                keepAlive: true,
            },
        }, {
            path: 'user',
            name: '我的',
            components: {
                main: _import('user/index'),
            },
            meta: {
                keepAlive: true,
            },
        }, {
            path: 'life',
            name: '生活圈',
            components: {
                main: _import('life/index'),
            },
            meta: {
                keepAlive: true,
            },
        }],
    },
];